static GList *
find_next_candidate (GList *local,
- GList *global,
- gboolean ascending)
+ GList *global)
{
if (local && global)
{
global_data = global->data;
if (local_data->priority < global_data->priority)
- return (ascending) ? local : global;
+ return global;
else
- return (ascending) ? global : local;
+ return local;
}
else if (local)
return local;
lookup = _gtk_css_lookup_new ();
- while ((elem = find_next_candidate (list, global_list, FALSE)) != NULL)
+ while ((elem = find_next_candidate (list, global_list)) != NULL)
{
GtkStyleProviderData *data;
GtkStyleProperties *provider_style;
global_list = g_list_last (global_list);
}
- while ((elem = find_next_candidate (list, global_list, FALSE)) != NULL)
+ while ((elem = find_next_candidate (list, global_list)) != NULL)
{
GtkIconFactory *factory;
GtkStyleProviderData *data;
list = priv->providers_last;
global = global_list;
- while ((elem = find_next_candidate (list, global, FALSE)) != NULL)
+ while ((elem = find_next_candidate (list, global)) != NULL)
{
GtkStyleProviderData *provider_data;
sym_color = NULL;
while (sym_color == NULL &&
- (elem = find_next_candidate (list, global_list, FALSE)) != NULL)
+ (elem = find_next_candidate (list, global_list)) != NULL)
{
GtkStyleProviderData *data;